import Vue from 'vue'
import Vuex from 'vuex'
import modules from './modules/index.js'

Vue.use(Vuex)

export function useStore() {
  return new Vuex.Store({ modules })
}

const store = useStore()
export default store
